package cn.tede.submarine;

import javax.swing.*;
import java.util.Random;
/**
鱼雷潜艇
 */
public class TorpedoSubmarine extends SeaObject implements EnemyScore{
    public TorpedoSubmarine(){
        super(64,20);
    }
    //重新move()方法
    public void move(){
        x += speed;//x+表示向右移动
    }
    public ImageIcon getImage(){
        return Images.torpesubm;
    }
   public int getScore(){
        return 40;
   }
}
